{extend name="Home/Theme/Theme1/base" /}

{block name="meta"}
<meta name="keywords" content="{$nav['name']}">
<meta name="description" content="{$nav['name']}">
{/block}

{block name="title"}{$nav['name']}_{/block}

<!--{block name="search"}-->
<!-- <input name="nav_id" value="{$nav['id']}" type="hidden" />-->
<!-- <input name="search" size="11" id="edtSearch" type="text">-->
<!--{/block}-->

{block name="main"}
<header class="intro-header" style="background-image: url(&#39;/&#39;)">
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 ">
                <div class="site-heading">
                    <h1>{$title}</h1>
                    <span class="subheading"></span>
                </div>
            </div>
        </div>
    </div>
</header>
<div class="container">
    <div class="row">
        <div class="
                col-lg-8 col-lg-offset-1
                col-md-8 col-md-offset-1
                col-sm-12
                col-xs-12
                postlist-container
            ">
            <h3 id="blogs">Blogs</h3>
            <hr>
            {volist name="datas['datas']" id="data" empty="暂时没有数据"}
                <div class="post-preview">
                    <font color="blue">{$data['update_time']}</font>
                    <a target="_blank" href="/articles/{$data['id']}.html">{$data['name']}</a>
                </div>
                <hr>
            {/volist}

            {include file="Home/Theme/Theme1/page" /}
        </div>

        {include file="Home/Theme/Theme1/news" /}
    </div>
</div>
{/block}
{block name="js"}
<script>
  $("#go").click(function(){
    let page = $("#goPage").val();
    if (page > 0 && page <= Number($(".num:last").text())) {
      location.href="{$url}?page="+page+"&{$datas['query']|raw}"
    }
  })
</script>
{/block}
